Skip to content

avoid calling path.node when we already have the reference#1440

Merged
Janther merged 2 commits intomainfrom
cleaning-path-node-calls
Mar 8, 2026
Merged

avoid calling path.node when we already have the reference#1440
Janther merged 2 commits intomainfrom
cleaning-path-node-calls

Conversation

@Janther
Copy link
Copy Markdown
Member

@Janther Janther commented Mar 4, 2026

there are a few functions that required the path in order to access the path.node given that we already had the exact pointer to the node from the function that was calling.

after some profiling I reached the conclusion that passing the extra parameter to the function was faster than getting the node from the path.

@Janther Janther requested a review from fvictorio March 4, 2026 19:48
@Janther Janther added performance Results in smaller size, better memory usage, or faster execution refactor reorganising the code without changes labels Mar 4, 2026
@Janther Janther force-pushed the cleaning-path-node-calls branch from 730e53e to 5f98a91 Compare March 7, 2026 21:02
@Janther Janther force-pushed the cleaning-path-node-calls branch from 5f98a91 to fac35c7 Compare March 8, 2026 13:01
@Janther Janther merged commit dd23da0 into main Mar 8, 2026
7 checks passed
@Janther Janther deleted the cleaning-path-node-calls branch March 8, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Results in smaller size, better memory usage, or faster execution refactor reorganising the code without changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants